﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.MediaSource.BilibiliAPI.Helpers
{
    public class StringHelper
    {
        public static string DecodeBase64(string base64)
        {
            if (string.IsNullOrWhiteSpace(base64)) return string.Empty;
            var bytes = Convert.FromBase64String(base64);

            var result = Encoding.UTF8.GetString(bytes);
            return result;
        }
    }
}
